<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>我的订单</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<style type="text/css">
h1 {
	clear: both;
	margin-left: 460px;
}

table {
	margin: 0px auto;
	width: 1024px;
}

table img {
	width: 100px;
	height: 100px;
	vertical-align: middle;
}

td {
	text-align: center;
}

th {
	line-height: 50px;
	background-color: #A52A2A;
	color: white;
}

#empty {
	margin: 0px 0px 0px 20%;
}

#submit {
	width: 100px;
	height: 40px;
	background-color: #A52A2A;
	border: 0px;
	color: white;
}
;
</style>
<script type="text/javascript" src="${request.Context}/js/jquery-1.8.3.js"></script>
<script type="text/javascript">
	$(document).ready(function(e) {
		$(".del").click(function() {
			return confirm("确定要删除吗？");
		});

	});
</script>

</head>

<body>
<#include "header.ftl">
<h1>我的订单</h1>
	<hr>
<form action="" method="post">
<#if olist??>
		<table width="100%" border="1">
			<tr>
				<td>订单编号</td>
				<td>用户ID</td>
				<td>商品ID</td>	
				<td>单价</td>		
				<td>购买数量</td>					
				<td>总价</td>
				<td>支付时间</td>
				<td>支付状态</td>
				<td colspan="20px">操作</td>
			</tr>
			<#list olist as o>		
				<tr>				
					<td>${o.getOid() }</td>										
					<td>${o.getUid() }</td>
					<td>${o.getId()}</td>
					<td>${o.getPrice()}</td>				
					<td>${o.getNum() }</td>
					<td>${o.getPrice()*o.getNum()}</td>
					<td>${o.getPaytime() }</td>
				<td>	
				<#if test="${o.status == 1}">已支付</#if> 
				<#if test="${o.status == 0}">未支付</#if>
				</td>	
				</td>															
				<td><a href="/order/del?oid=${o.getOid()}">删除</a></td>				
				</tr>
			</#list>
</#if>
		</table>
</form>

<#include "footer.ftl">
</body>
</html>